package com.yezao.baseui.widget.loadingview

import android.content.Context
import android.util.AttributeSet
import android.widget.FrameLayout

abstract class BaseLoadingView:FrameLayout {
    constructor(context: Context) : super(context)
    constructor(context: Context, attrs: AttributeSet?) : super(context, attrs)
    constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(
        context,
        attrs,
        defStyleAttr
    )

    abstract fun startLoading()
    abstract fun stopLoading()


    protected var mLoadingListener:LoadingListener?=null


    fun setLoadingListener(l:LoadingListener){mLoadingListener = l}
    interface LoadingListener{
        fun onStartAnimFinished()
        fun onStopAnimFinished()
    }
}